package com.commerceE.dao.impl;

import java.util.List;

import com.commerceE.common.dao.GenericIBatisDaoImpl;
import com.commerceE.dao.AddressDao;
import com.commerceE.domain.Address;

public class AddressDaoImpl extends GenericIBatisDaoImpl<Address> implements AddressDao{

	@Override
	public String getNAMESPACE() {
		return Address.class.getName();
	}
	
	public List<Address> getAddressByUserId(Long userId){
		return getSqlSession().selectList(getNAMESPACE() +".getAddressByUserId",userId);
	}
}
